package cd.safe.school.data;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class StudentData extends SQLiteOpenHelper {

	public StudentData(Context context) {
		super(context, "student", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		String sql = "create table student(id integer primary key autoincrement,logurl text,shouzimu text,name text,phone text,age integer,lastlogin text)";
		db.execSQL(sql);

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
